import { Settings } from "@/api/interface/index";
import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";
import qs from "qs";

/**
 * @name 配置
 */
// * 获取配置
export const getItem = (params: Array<string>) => {
	return http.get<Settings.getItemRes>(PORT1 + `/store/settings/getItem?` + qs.stringify({ column: params }));
};

// * 设置
export const setItem = (params: Settings.setItemReq) => {
	return http.put(PORT1 + `/store/settings/setItem`, params);
};
